﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CraftParameterConfig.Domain.Interfaces
{
    public interface IRespository<T>
    {
        void Add(T entity);
        void AddRange(List<T> entitys);
        void Update(T entity);
        void Delete(Guid id);
        void Delete(T entity);
        void DeleteAll();
        T GetEntityByGuid(Guid id);
        DataTable GetTable(string condition);
        T GetEntityByContition(string condition);
        List<T> GetEntitysByContition(string condition);
    }
}
